FROM node:20.17.0
WORKDIR /chunyu
COPY . .
RUN mkdir /upload
RUN npm config set registry https://registry.npmmirror.com/
# RUN npm install -g yarn && yarn install && yarn build
# RUN npm install --global yarn@latest
RUN yarn config set registry http://r.cnpmjs.org/
# RUN yarn install
RUN yarn build
EXPOSE 4000
CMD ["yarn", "start:prod"]
